{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">

            <div class="layui-form-item">
                <label class="layui-form-label">角色名称</label>
                <div class="layui-input-inline">
                    <input lay-verify="required|name" type="text" name="name" value="{$data.name|default=''}" autocomplete="off"
                           placeholder="请输入角色名称" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item" pane>
                <label class="layui-form-label">启用？</label>
                <div class="layui-input-block">
                    <input type="radio" name="status" value="1" title="是" {if condition="isset($data) and $data.status eq 1"}checked{/if} checked>
                    <input type="radio" name="status" value="0" title="否" {if condition="isset($data) and $data.status eq 0"}checked{/if} >
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="add" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>

{/block}
{block name="js"}
